package com.shopping.serviceImpl;

import com.shopping.dao.AdminDao;
import com.shopping.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;

    @Override
    public boolean checkUserNameAndPassword(String userName, String password) {
        return adminDao.checkUserNameAndPassword(userName,password)>0;
    }
}
